package com.ctshk.rpc.air.entity.es;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @BelongsProject: ctshk-cloud
 * @BelongsPackage: com.ctshk.rpc.air.entity.es
 * @Author: hef
 * @CreateTime: 2021-05-19 14:17
 * @Description: 描述
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class AirProductChannelOnlineSelfPlatformEs implements Serializable {

    @Field(type = FieldType.Long)
    @ApiModelProperty(value = "产品ID")
    private Long productId;

    @Field(type = FieldType.Long)
    @ApiModelProperty(value = "所属策略")
    private Long strategyId;

    @Field(type = FieldType.Long)
    @ApiModelProperty(value = "渠道id(主数据)")
    private Long channelId;

    @Field(type = FieldType.Text)
    @ApiModelProperty(value = "渠道名称")
    private String channelName;

    @Field(type = FieldType.Integer)
    @ApiModelProperty(value = "加幅类型(1 数值，2百分比百分比增幅小数部分需向上取整，如1.56取2.00)")
    private Integer adjustType;

    @Field(type = FieldType.Double)
    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @Field(type = FieldType.Double)
    @ApiModelProperty(value = "百分比")
    private Double percent;

    @Field(type = FieldType.Double)
    @ApiModelProperty(value = "往返優惠去程优惠金额")
    private BigDecimal tripAmount;

    @Field(type = FieldType.Double)
    @ApiModelProperty(value = "往返優惠返程优惠金额")
    private BigDecimal returnAmount;
}
